<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <h2>Essential Links</h2>

<Button v-on:click1="onClick2" type="success" size="small">确认</Button>
<div style="margin:30px 300px">
<Button v-on:click1="onClick" type="error">删除</Button>
    <Button type="info" gosh>Info</Button>
    <Button type="success">Success</Button>
    <Button type="warning">Warning</Button>
    <Button type="error">Error</Button>
    <template>
    <Button type="primary" shape="circle" icon="ios-search"></Button>
    <Button type="primary" icon="ios-search">Search</Button>
    <Button type="primary" shape="circle" icon="ios-search">Search</Button>
    <Button type="primary" shape="circle">Circle</Button>
    <br><br>
    <Button shape="circle" icon="ios-search"></Button>
    <Button icon="ios-search">Search</Button>
    <Button shape="circle" icon="ios-search">Search</Button>
    <Button shape="circle">Circle</Button>
    <Input v-model="value"  placeholder="Enter something..." style="width: 300px" />
    <router-link to="/login">go to login</router-link>
</template>
</div>
<div class="tip fz-30 w-200" >

</div>

</div>
</template>

<script>
//import Button from './Button.vue'

export default {
 name: 'HelloWorld',
 components: {
    // Button
  },
  data () {
    return {
      msg: 'Welcome to Your Vue.js App',
      value: ''
    }
  },
  methods: {
    onClick (e) {
      console.log('.........',this.value)
      this.$router.push({path:'/login', query:{id:'123',name:'abc'}})
      
    },
    onClick2 (e) {
      console.log('11111111111')
     
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
